<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path;
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script type="text/javascript" src="js/jquery-1.8.0.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>您想要的店铺</title>
</head>
<body>
	<script type="text/javascript">
		var i = 0;
	</script>
	<s:iterator value="mus" var="mu">
		<div>
			${mu.menuName}|${mu.price}|${mu.id}|
			<button onclick="cut();">-</button>
			<input type="text" name="count${mu.id}" value="1" size="2">
			<button onclick="add();">+</button>
			<a href="addCar?mu.id=${mu.id}&count=count${mu.id}">加入购物车</a>
			<script type="text/javascript">
				var arr = [ i ];
				arr[i] = 
				i = i + 1;
				alert(arr[i]);
			</script>
		</div>
	</s:iterator>
	<script type="text/javascript">
	function add(){
		for(var u=0;u<i;u++){
			alert(arr[u]);
		}
	}
	</script>
	
</body>
</html>